package com.hbuzzs.elasticsearch.service;

import com.hbuzzs.elasticsearch.entity.TestBean;

import java.util.List;


public interface TestService {

    Boolean save(TestBean bean);

    void delete(TestBean bean);

    Boolean update(TestBean bean);

    List<TestBean> findAll();

    List<TestBean> findByName(String name);

    List<TestBean> findByNameFuzzyQuery(String name);

    List<TestBean> findManByNameOrDesc(String name, String desc);

    List<TestBean> findFirstPage(Integer startPage, Integer n);

}